package org.example;
import java.util.Scanner;
public class TestBankAccount {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // 输入账户余额、提取额度、存款额度
        int initialBalance = scanner.nextInt();
        int withdrawAmount = scanner.nextInt();
        int depositAmount = scanner.nextInt();
        // 创建银行账户对象
        BankAccount account = new BankAccount(initialBalance);
        // 输出初始账户余额
        System.out.println(account.getBalance());
        // 提取金额
        account.withdraw(withdrawAmount);
        // 输出提取amount额度后的账户余额
        System.out.println(account.getBalance());
        // 存入金额
        account.deposit(depositAmount);
        // 输出存入amount后的账户余额
        System.out.println(account.getBalance());
        scanner.close();
    }
}
